package com.ruoyi.st.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 轮播图对象 st_carousel
 * 
 * @author ruoyi
 * @date 2024-11-06
 */
public class StCarousel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，唯一标识轮播图 */
    private Long id;

    /** 演出详情ID，外键 */
    @Excel(name = "演出详情ID，外键")
    private Long perfDetId;

    /** 排序字段，用于确定轮播顺序 */
    @Excel(name = "排序字段，用于确定轮播顺序")
    private Long sort;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String url;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPerfDetId(Long perfDetId) 
    {
        this.perfDetId = perfDetId;
    }

    public Long getPerfDetId() 
    {
        return perfDetId;
    }
    public void setSort(Long sort) 
    {
        this.sort = sort;
    }

    public Long getSort() 
    {
        return sort;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("perfDetId", getPerfDetId())
            .append("sort", getSort())
            .append("url", getUrl())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("createdBy", getCreatedBy())
            .toString();
    }
}
